package com.poh.service;

import com.github.pagehelper.PageInfo;
import com.poh.pojo.User;
import com.poh.pojo.query.UserQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserService {
    User userLogin(String userName, String passWord);
    int updateImgByUserId(int userId, String userImg);
    int studentAddCourse(int userId, int courseId);
    List<User> getStudentByCourseId(int courseId);
    int deleteUserById(int userId, int courseId);
    List<User> queryStudentLikeStudentName(int courseId, String userName);
    int addStudentToCourse(int userId, int courseId);
    int getCourseIdByInvitationCode(@Param("invitationCode") String invitationCode);
    String getUserNameById(int userId);
    PageInfo<User> listUserByName(UserQuery userQuery);
    int addUser(User user);
    int updateUserById(User user);
    List<User> getAllStudent();
    User getUserById(@Param("userId")int userId);
}
